package com.gupao.delegate.simple;

import java.util.HashMap;
import java.util.Map;

public class Leader implements IEmployee {

    private Map<String, IEmployee> employeeMap = new HashMap<String, IEmployee>();
    public Leader(){
        employeeMap.put("注册", new EmployeeRegist());
        employeeMap.put("登录", new EmployeeLogin());
    }

    public void doing(String command) {
        employeeMap.get(command).doing(command);
    }
}
